package com.example.gustavo.hello;

import android.text.TextPaint;
import android.text.style.CharacterStyle;

/**
 * Created by gustavo on 2015/4/7.
 */
public class TextColorSpan extends CharacterStyle {
    private int color;


    public TextColorSpan(int color) {

        this.color = color;
    }

    @Override
    public void updateDrawState(TextPaint tp) {
        tp.setColor(color);

    }
}
